package com.yyx.app1.MedicationAssistant_function.Controls.MedicationAssistant_Activity_Control.Three_ListView;

import android.content.Context;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.yyx.app1.R;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by yuexing on 2015/9/1.
 */
@EViewGroup(R.layout.itemview_listview_madicationassistant__three_menu)
public class ThreeListView_ItemView extends RelativeLayout {
    public ThreeListView_ItemView(Context context) {
        super(context);
    }

    @ViewById
    TextView left_listview_ico_image,left_listview_text_textview;

    public void bind(ItemDataType itemDataType)
    {
        left_listview_ico_image.setText(++itemDataType.number+"");
        left_listview_text_textview.setText(itemDataType.itemName);
    }

    public TextView getLeft_listview_ico_image() {
        return left_listview_ico_image;
    }

    public void setLeft_listview_ico_image(TextView left_listview_ico_image) {
        this.left_listview_ico_image = left_listview_ico_image;
    }

    public TextView getLeft_listview_text_textview() {
        return left_listview_text_textview;
    }

    public void setLeft_listview_text_textview(TextView left_listview_text_textview) {
        this.left_listview_text_textview = left_listview_text_textview;
    }
}
